<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <title>首页 >> 发表分享</title>
        <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/person.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css" />
		<link href="__PUBLIC__/css/codetaste_person.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/js/auto/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/auto/jquery.autocomplete.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/ckeditor/ckeditor.js"></script>
        <script src="__PUBLIC__/js/ajaxupload.js" type="text/javascript"></script>
        <script src="__PUBLIC__/js/ajaxupload.js" type="text/javascript"></script>
        <script src="__PUBLIC__/js/kindeditor/kindeditor.js" charset="utf-8"></script>
		<script type="text/javascript" src="__PUBLIC__/js/wbox/wbox-min.js"></script>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/wbox/wbox-min.css" />
<script type="text/javascript">

$(document).ready(function(){
	$(".pic_content").hide();
	$(".tiezi_content").hide();
	$(".submit_button").hide();
	
    KE.show({
        id : 'ke_content',
        items : ['fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
  				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
  				'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'unlink']
    });
    
	$("#createSp").click(function(){
		$("#is_newsp").val("1");
		$(".choose_sp").html("");
		$(".create_sp").html("品类：<input type=\"text\" id=\"hi_brand\" name=\"category\" value=\"\" /><br />"+
				"品牌：<input type=\"text\" id=\"hi_brand\" name=\"brand\" value=\"\" /><br />"+
				"品名：<input type=\"text\" id=\"hi_brand\" name=\"commodity\" value=\"\" /><br />");
	});

	$("#showSpList").click(function(){
		$("#is_newsp").val("0");
		$(".create_sp").html("");
	});

	$("#pic_button").click(function(){
		$(".pic_content").show();
		$(".tiezi_content").hide();
		$(".submit_button").show();
		$(".content_type").val("1");
	});

	$("#tiezi_button").click(function(){
		$(".tiezi_content").show();
		$(".pic_content").hide();
		$(".submit_button").show();
		$(".content_type").val("2");
	});
	
});

</script>

    </head>
    <body>
	   <div class="containner">
        <include file="Index:header"/>
        <!--导航结束--> 
    <div id="myshare" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
    <div class="body-center">
<!--        <div class="path">
	   首页 >> 个人页面 >> 发表分享
        </div>-->
                <div class="w_tithead"> <strong>您当前的位置是： </strong><a href="__APP__">品购网首页</a><a  href="#">个人信息</a>发表分享</div>

        <div class="persion_title">最新分享</div>
        <div class="contents">
            <!-- 左侧菜单begin -->
            <div class="menu">
                <include file="User:user_menu"/>
            </div>
            <!-- 左侧菜单end -->
           	
            <!-- 右侧新增发表分享begin -->
            <form method="post" action="__APP__/Home/Share/adds" onsubmit="return checkForm();" enctype="multipart/form-data">
	            <div class="content">
		            <div class="gzsp"><img src="__PUBLIC__/Images/gzsp.jpg"></div>
	             	<div class="solid"></div>
	            	<div id="form_content">
	            	  <ul class="form_ul">
		            	<li><a id="showSpList">选择你要发表的帖子的商品</a>　　<a id="createSp">还没有这件商品？那就创建它</a></li>
						<input type="hidden" id="is_newsp" name="is_newsp" value="0">
		            	<li class="choose_sp"></li>
			            <li class="create_sp"></li>
		            	<li>标题：<input type="text" name="title" value="" /></li>
		            	<li>类型：
		            		<volist name="hangye" id="val">
		            		  <label><input type="radio" name="industry_id" value="{$key}">{$val}</label>
		            		</volist>
		            	</li>
		            	<li><a id="pic_button">发表图片>></a>　<a id="tiezi_button">发表帖子>></a></li>
		            	<input type="hidden" class="content_type" name="content_type" value="0">
		            	<li class="pic_content">上传图片：<input type="file" name="pic" value="" /></li>
		            	<li class="pic_content"><span>图片说明：</span><textarea name="message" style="width:600px; height:200px;"></textarea></li>
		            	<li class="tiezi_content">分享正文：<textarea id="ke_content" name="content" style="width:780px; height:500px;"></textarea></li>
		            	<li class="submit_button"><input type="button" class="button" name="" value="查看预览">　　<input type="submit" class="button" name="" value="确认提交"></li>
	            	  </ul>
	            	</div>
	            </div>
            </form>
            <!-- 右侧新增发表分享end -->
        </div>
    </div>
<script type="text/javascript">
//弹出框
var wBox = $("#showSpList").wBox({
    title : '选择商品',
	requestType: "iframe",
	iframeWH:{width:700,height:515},
	target:"__URL__/spList"
});


</script>

<include file="Index:bottom" />
<!--页尾部分-->
</div>
</body>
</html>
